package com.diligent.cloud.sfc.resources.impl;

import com.canny.commons.model.ObjectResult;
import com.diligent.cloud.sfc.resources.MdmResource;
import com.diligent.cloud.sfc.service.MdmService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;

/**
 * MdmResourceImpl class
 *
 * @author xf107278
 * @date 3/28/2020
 */
@RestController
public class MdmResourceImpl implements MdmResource {

    private MdmService mdmService;

    public MdmResourceImpl(MdmService mdmService) {
        this.mdmService = mdmService;
    }

    @Override
    public ResponseEntity<ObjectResult> getMouldPic(String matCode, String systemId) {
        return mdmService.getMouldPic(matCode,systemId);
    }
}
